package com.diet263.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.diet263.nfcleedemo.R;

public class ControlActivity extends BaseActivity implements OnClickListener {

	protected static final String TAG = "ControlActivity";
	private Button btnRunApp;
	private Button btnWriteWifi;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_control);
		btnRunApp = (Button)findViewById(R.id.btn_run_appliction);
		btnWriteWifi = (Button)findViewById(R.id.btn_wifi_connecttion);
		btnRunApp.setOnClickListener(this);
		btnWriteWifi.setOnClickListener(this);
	}

	@Override
	public void onResume() {
		super.onResume();
	}

	@Override
	public void onPause() {
		super.onPause();
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_run_appliction:
			startActivity(new Intent(this, RunApplicationActivity.class));
			break;
		case R.id.btn_wifi_connecttion:
			startActivity(new Intent(this, WriteWifiConnectionActivity.class));
			break;

		default:
			break;
		}

	}

}
